<%@page import="java.awt.Button"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%@taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@page import="java.util.ArrayList"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

</head>
<body>
	<div align="center">
		<h1 style="color: blue;">QUẢN LÝ TÀI KHOẢN</h1>
		<table class="table1" id="usertable" border="1">
			<tr>
				<th scope="col" abbr="Starter">Số thứ tự</th>
				<th scope="col" abbr="Starter">Tên nhân viên</th>
				<th scope="col" abbr="Starter">Tài khoản</th>
				<th scope="col" abbr="Starter"></th>
			</tr>
			<c:forEach items="${userModel.userDTOs}" var="user"
				varStatus="status">
				<tr class="<c:if test="${status.count % 2 == 0}">even</c:if>">
					<td>${user.staffID}</td>
					<td>${user.staffName}</td>
					<td>${user.userName}</td>
					<td><a id="editpassword"
						href="#" onclick="editPassword(${user.staffID})"><img src="<c:url value="/resources/images/edit-icon.png"/>"/></a></td>
				</tr>
			</c:forEach>
			
				
			
		</table>
		<div id="userpaging"></div>
			<script type="text/javascript">
       			var pager = new Pager('usertable', 7);
       			pager.init();
      			pager.showPageNav('pager', 'userpaging');
       			pager.showPage(1);
			</script>
			<a href="#"><input class="button" id="adduser" type="button"
					value="Thêm"></a>
				
	</div>

</body>
</html>